package net.qiqb.core.domain.event.receiver;

import lombok.Getter;

import java.io.Serializable;

/**
 * 接受响应
 */
@Getter
public class ReceiveAckResp implements Serializable {
    /**
     * 服务实际ip
     */
    private final String ip;
    /**
     * 事件处理器数量
     */
    private final int eventHandlerQty;

    public ReceiveAckResp(int eventHandlerQty, String ip) {
        this.ip = ip;
        this.eventHandlerQty = eventHandlerQty;
    }

    /**
     * 处理数量
     *
     * @return
     */
    public int getHandleQty() {
        return eventHandlerQty;
    }
}
